﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using MyBlog.Model;

namespace MyBlog.ServiceInterface
{
   public interface ICategoryService
    {
        void Add(CategoryModel entity);

        void Update(CategoryModel entity);

        void Delete(CategoryModel model);

        void Delete(params object[] primaryKey);

        CategoryModel Get(CategoryModel model);

        List<CategoryModel> GetAll(bool isTracking = true);

        List<CategoryModel> GetAll(CategoryModel model, bool isTracking = true);
    }
}
